package cn.hxzy.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum OperateType {


    operateType_01(101, "暂停"),
    operateType_02(102, "新建"),
    operateType_03(103, "自动关闭");

    private Integer operateType;
    private String operateTypeName;

    public static String geOperateTypeValue(int index) {
        for (OperateType value : OperateType.values()) {
            if (value.getOperateType() == index) {
                return value.getOperateTypeName();
            }
        }
        return null;
    }
}
